package extendss;

public class Son extends Father {
    public Son() {
        System.out.println("son");
    }

    @Override
    public int testExtends(int test) {
        return 0;
    }
public void test(){
    System.out.println("a");
}
    public static void main(String[] args) {
    Son son=new Son();
       // son.testExtends(0);
        //son.test();
//        System.out.println("2222222222");
        Father father=new Father();
//        if (son instanceof Father){
//            System.out.println("ok");
//        }

        if (father instanceof Son){
            System.out.println("no");
        }
    }
}
